package Task2;

import java.util.*;

public class Remove {
	public static void main(String[] args) {
		int b = 1;
		List a = new ArrayList();
		while (b < 19) {
			a.add(b);
			b++;
		}
		a.add(1);
		a.add(15);
		a.set(5, 11);
		System.out.println(a);
		a = new ArrayList(new HashSet(a));
		System.out.println(a);
	}
}
